﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp14
{
    class Judgment
    {
        int sum1 = 0;
        int sum2 = 0;
        int sum3 = 0;
        int sum4 = 0;

        public void Date(int p1, int p2)
    {
            if (p1 - p2 == -2 || p1 - p2 == 1)
        {
            Console.WriteLine("玩家胜利!");
                sum2++;
        }
        else if (p1 == p2)
        {
            Console.WriteLine("平局");
                sum3++;
        }
        else
        {
            Console.WriteLine("玩家失败!");
                sum4++;
        }
           int sum1 = sum2 + sum3 + sum4;
            
    }
        

       internal void Date1()
        {
            Console.WriteLine("你的胜场数：{0}", sum2);
            Console.WriteLine("对手胜场数：{0}", sum4);
            Console.WriteLine("平局场数：{0}", sum3);
            Console.WriteLine("总场数：{0}", sum1);
            if (sum2 > sum4)
            {
                Console.WriteLine("你赢了");
            }
            else if (sum2 < sum4)
            {
                Console.WriteLine("你输了");
            }
            else if (sum2 == sum4)
            {
                Console.WriteLine("平局");
            }
        }
    }
}